import fetch from "common/src/utils/fetch";

export function findList(data) {
  return fetch({
    url: "/api/majorservice/confirmBatchManage/selectConfirmBatchManagePage",
    method: "post",
    headers: { "Content-Type": "application/json" },
    data
  });
}

export function findOne(id) {
  return fetch({
    url: "/api/majorservice/confirmBatchManage/findConfirmBatchManageById",
    method: "get",
    headers: { "Content-Type": "application/json" },
    params: {
      id: id
    }
  });
}

export function add(data) {
  return fetch({
    url: "/api/majorservice/confirmBatchManage/insertConfirmBatchManage",
    method: "post",
    headers: { "Content-Type": "application/json" },
    data
  });
}

export function edit(data) {
  return fetch({
    url: "/api/majorservice/confirmBatchManage/updateConfirmBatchManageById",
    method: "put",
    headers: { "Content-Type": "application/json" },
    data
  });
}

export function deleteData(id) {
  return fetch({
    url: "/api/majorservice/confirmBatchManage/deleteConfirmBatchManageById",
    method: "delete",
    headers: { "Content-Type": "application/json" },
    params: {
      id: id
    }
  });
}
